package com.eskie.vmobileapp;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import android.widget.ExpandableListAdapter;
import android.widget.ExpandableListView;

public class Drawer_List {
	ExpandableListAdapter listAdapter;
	ExpandableListView expListView;
	List<String> listDataHeader;
	HashMap<String, List<String>> listDataChild;
	String[] menuDrawer = new String[] { "Load", "Reload", "Transfer",
			"Balance Inquiry", "Change PIN", "History" };

	public Drawer_List(String menu) {
		listDataHeader = new ArrayList<String>();
		listDataChild = new HashMap<String, List<String>>();

		// Adding child data
		listDataHeader.add("Configure");
		listDataHeader.add("Generate ID Package");
		listDataHeader.add("Icon");

		// Adding child data
		List<String> conf = new ArrayList<String>();
		conf.add("ID Number");
		conf.add("Gateway");

		List<String> icons = new ArrayList<String>();
		for (int x=0;x<=5;x++){
			if (!menu.equals(menuDrawer[x])){
				icons.add(menuDrawer[x]);
			}
		}
		listDataChild.put(listDataHeader.get(0), conf);
		listDataChild.put(listDataHeader.get(1), new ArrayList<String>());
		listDataChild.put(listDataHeader.get(2), icons);
	}
}
